import { memo } from "react";
import Router from "./router";
import { Helmet, HelmetProvider } from "react-helmet-async";
import Logo from "@/assets/images/logo.png";
import ThemeProvider from "./theme/theme-provider";

const App = memo(() => {
  return (
    <ThemeProvider>
      <HelmetProvider>
        <Helmet>
          <title>React Admin</title>
          <link rel="icon" href={Logo} />
        </Helmet>
      </HelmetProvider>
      <div>
        <Router />
      </div>
    </ThemeProvider>
  );
});

export default App;
